package com.garlic.face.jlf.presenter;

import android.os.Handler;

import com.garlic.face.jlf.transaction.bean.TradeHead;

import org.json.JSONObject;

/**
 * @author wenhui02.liu
 * @date 2018/8/10.
 */

public interface ScanGoodsContract {

    interface View {

        void hideProgress();

        void showProgress();


        void processItemList(TradeHead tradeHead);

        void gotoPay();

        void gotoMain();

        void refreshVipTextView(String cardnumber,  String points );

        void setBlscaleEvent(boolean b);

        void hideSuperVisorDlg();

        void showNormalDlog();

        void setSuperVisorPwd(String s);

        void hideLoad();

        void showLoad();

        void confirmGoods();
    }

    interface Presenter {
        void cancelTransaction();

        void getItemInfo(String barCode, String qty);

        void calcItemPriceEnd();

        void addItem(int position);

        void reduceItem(int position);

        void reduceItem(int position, int count);

        void removeItem(int position);

        void getMemberInfo(String mCurrentBarCode);

        void parseResponse(JSONObject jsonObject);

        void weight(String weight);

        void setWeightHandler(Handler weightHandler);
    }
}
